package com.deviche.view;

import android.content.Intent;
import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;

import com.alibaba.android.arouter.facade.annotation.Route;

@Route(path = "/view/activity1")
public class MainActivity extends AppCompatActivity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);
//传递参数注入
//        ARouter.getInstance().inject(this);
//        jumpTo(DouyinActivity.class);
        jumpTo(EleActivity.class);
//        jumpTo(MeituanActivity.class);
    }

    public void jumpTo(Class clazz) {
        Intent intent = new Intent(this, clazz);
        startActivity(intent);
        finish();
    }
}
